/**
 * 输出日志
 * @param { string } str
 */
function log(str) {
  Packages.mks.util.Logger.message(str);
}

function main() {
  var eb = bsf.lookupBean("siEnvironmentBean"); // 环境变量
  var sb = bsf.lookupBean("imServerBean"); // 服务
  var delta = bsf.lookupBean("imIssueDeltaBean"); // 触发对象
  var params = bsf.lookupBean("parametersBean"); // 参数

  eb.getEventName // () => java.lang.String

  sb.copyContent // (issueID: number, parentId: number): ScriptIssueDeltaBean

  delta.getID // (): number

  params.getBooleanParameter // (key: java.lang.String): boolean

  sb.errorFunc // 类型“ScriptServerBean”上不存在属性“errorFunc”。ts(2339)
}

log("-------------------------  start trigger js ------------------------");

main();

log("-------------------------  end trigger js  ------------------------");
